/**
 * @author Tran
 */
import java.awt.*;
import javax.swing.*;
/*
 * for adding stuff related to vocab
 * so its for the admin to add words
 */
public class CreateVocab extends JPanel
{
	/**
	 * @backV goes back to Admin_vocab
	 * @createList submits a new list for creation
	 * @selectList labels for textfield
	 * @selectClass labels for select class
	 * @createL a label for textarea
	 */
	blankButton backV, createList;
	JLabel selectList, selectClass, createL;
	JTextField listName, className;
	JTextArea newList;
	
	public CreateVocab()
	{
		//setting up gridbaglayout
		this.setLayout(new GridBagLayout());
		GridBagConstraints c = new GridBagConstraints();
		
		Font font = new Font("Ubuntu Mono", Font.BOLD, 16);
		
		selectList = new JLabel("Name of Vocabulary List");
		selectClass = new JLabel("Name of class selection");
		createL = new JLabel("Create New Vocabulary List");
		
		selectList.setFont(font);
		selectClass.setFont(font);
		createL.setFont(font);
		
		backV = new blankButton("Back");
		createList = new blankButton("Create");
		
		backV.setFont(font);
		createList.setFont(font);
		
		listName = new JTextField();
		listName.setPreferredSize(new Dimension(150, 30));
		className = new JTextField();
		className.setPreferredSize(new Dimension(150, 30));
		
		newList = new JTextArea();
		newList.setPreferredSize(new Dimension(300, 300));
		
		c.insets = new Insets(2,2,2,2);
		c.gridx = 0;
		c.gridy = 0;
		this.add(createL, c);
		c.gridy = 1;
		this.add(newList, c);
		//c.insets = new Insets (0,0,0,0);
		c.gridx = 1;
		c.gridy = 0;
		this.add(selectClass, c);
		c.gridy = 1;
		this.add(className, c);
		c.gridy = 2;
		this.add(selectList, c);
		c.gridy = 3;
		this.add(listName, c);
		c.gridy = 4;
		this.add(backV, c);
	}
}
